<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>demo06表格标签</title>
</head>
<body>
<!--
    1.border="1px"属性：为表格设置边框
    2.style="border-collapse: collapse"属性：强调边框间距；
-->
<table border="1px" style="border-collapse: collapse">
    <caption>讲师信息表</caption>
    <tr>
        <th>序号</th>
        <th>姓名</th>
        <th>课程</th>
    </tr>
    <tr>
        <td>1</td>
        <td>张三</td>
        <td>java<</td>
    </tr>
    <tr>
        <td>2<</td>
        <td>王五</td>
        <td>python</td>
    </tr>

</table>

<!--跨列合并和跨行合并-->
<table border="1px" style="border-collapse: collapse">
    <tr>
        <td>1-1</td>
        <td>1-2</td>
        <td>1-3<</td>
        <td>1-4</td>
    </tr>
    <tr>
        <td colspan="2">2-1</td>
<!--        <td>2-2</td>-->
        <td>2-3<</td>
        <td rowspan="3">2-4</td>
    </tr>
    <tr>
        <td>3-1</td>
        <td>3-2</td>
        <td>3-3<</td>
<!--        <td>3-4</td>-->
    </tr>
    <tr>
        <td>4-1</td>
        <td>4-2</td>
        <td>4-3<</td>
<!--        <td>4-4</td>-->
    </tr>

</table>
<hr>
<table border="1px" style="border-collapse: collapse">
    <caption>购物车</caption>
    <tr>
        <th>商品编号</th>
        <th>商品名称</th>
        <th>商品价格</th>
    </tr>
    <tr>
        <td>1</td>
        <td>小米Air</td>
        <td>5877</td>
    </tr>
    <tr>
        <td>2</td>
        <td>华为遥遥领先</td>
        <td>8877</td>
    </tr>
    <tr>
        <td>总价</td>
        <td colspan="2">1000</td>
    </tr>
</table>


</body>
</html>